/*=============================================================================
*
*   Copyright (C) 2020 All rights reserved.
*
*   Filename:		registrator.hpp
*
*   Author: Wang Zhecheng - wangzhecheng@yeah.net
*
*   Date: 2020-03-04 14:38
*
*   Last Editors: Wang Zhecheng - wangzhecheng@yeah.net
*
*   Last modified:	2020-03-24 03:26
*
*   Description:
*
=============================================================================*/
#ifndef MATERIAL_REGISTERS_H
#define MATERIAL_REGISTERS_H

#include "../util/registrator.hpp"
#include "materials.hpp"

namespace geoxfem {
namespace util {

template <typename DimensionType>
struct registrator<material::MaterialInterface<DimensionType>> {
  static void apply() {
    using Material = material::MaterialInterface<DimensionType>;
    using elastic  = material::Elastic<DimensionType>;

    GEOXFEM_REGISTER_DERIVED(Material, elastic);
  }
};

}  // namespace util
}  // namespace geoxfem

#endif /* MATERIAL_REGISTERS_H */
